package org.monkey.test;

import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.monkey.circular.BeanA;
import org.monkey.circular.BeanB;
import org.monkey.service.OrderService;
import org.monkey.spring.Bean;
import org.monkey.spring.ComponentScan;
import org.monkey.spring.Import;

@Import({SqlSessionFactoryBuilder.class})
@ComponentScan(value = {"org.monkey.circular", "org.monkey.component", "org.monkey.service"})
public class AppConfig {

//    @Bean
//    @Primary
    public BeanA getBeanA() {
        return new BeanA();
    }

//  @Bean
  public BeanB getBeanB() {
    return new BeanB();
  }

//  @Bean
  public OrderService orderService() {
        return new OrderService();
  }

}
